package com.jubotech.framework.config;

import org.springframework.context.annotation.Configuration;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * @author SongFei
 * @date 2020/1/7 11:50
 */
@Configuration
public class FreemarkerConfig {

    @Resource
    private freemarker.template.Configuration configuration;

    @PostConstruct
    public void setSharedVariable() {
        // 取消默认数字格式化
        configuration.setNumberFormat("#");
    }

}
